//
//  PPUserAccount.h
//  pickpic
//
//  Created by 胡文广 on 2017/3/23.
//  Copyright © 2017年 MicroDream. All rights reserved.
//

#import "PPBaseModel.h"
#define userFonts @"fonts"
@class PPUserAccountConfig;
@interface PPUserAccount : PPBaseModel<NSCoding>

@property (nonatomic,strong) PPUserAccountConfig *userConfig;
@property (nonatomic,copy) NSString *user;
@property (nonatomic,copy) NSString *name;
@property (nonatomic,copy) NSString *pickpic;
@property (nonatomic,copy) NSString *gender;
@property (nonatomic,copy) NSString *country;
@property (nonatomic,copy) NSString *state;
@property (nonatomic,copy) NSString *city;
@property (nonatomic,copy) NSString *signature;
@property (nonatomic,copy) NSString *brithday;
@property (nonatomic,copy) NSString *fans;
@property (nonatomic,copy) NSString *follow;
@property (nonatomic,copy) NSString *album;
@property (nonatomic,copy) NSString *avatar;
@property (nonatomic,copy) NSString *avatarHost;
@property (nonatomic,copy) NSString *avatarURLString;
@property (nonatomic,copy) NSString *source;


+(PPUserAccount *)currentUser;
- (void)saveAccount;
+ (void)updateAccountInfoKey:(NSString *)key value:(NSString *)value;
+ (void)clearAccount;
- (void)registerFont;

@end

//    "user": 1, //用户ID
//    "name":"用户昵称",
//    "pickpick":"123456789",
//    "gender": 1, //1男，2代表女
//    "country": "中国",
//    "state":"山东",
//    "city":"济南",
//    "signature":"个人签名1123",
//    "brithday": 19920574,
//    "fans": 120, //粉丝数量
//    "follow":75, //关注用户数量
//    "album":18, //相册数量
//    "avatar":"ccccc", //头像对应的七牛的key
//    "avatarHost":"", //头像对应的七牛的Host
//    "msgCfg":
//    {
//        "All": 0, //接受所有消息 0:否，1是，如果是1，则下面字段均忽略
//        "like": 1,//赞消息设置：1:所有人;2:朋友;4:关闭;
//        "comment":2,//评论消息设置：1:所有人;2:朋友;4:关闭;
//        "fan":1 //关注消息设置：1打开，2关闭
//        "pickpick":1 //系统消息设置：1打开，2关闭
//
//    },
//    "token": "NGQyM2ZkYTZhZTUwM2Y5ZWYzZTJkZjUzMThkNWU5ZDY=" //本次会话所使用的token，之后所有需要提供用户id的方法，都需要在header中加入token进行身份标识



//.0.3&sign=d0594fd041b974ec08dc1ea870df3a06 - {
//    err =     {
//        code = 0;
//        eventId = "<null>";
//        msg = OK;
//    };
//    result =     {
//        actionTime = "<null>";
//        album = 1;
//        avatar = "";
//        avatarHost = "http://img.pickpic.cc/1990\U5e7411\U670830\U65e5";
//        birthday = "1990\U5e7411\U670830\U65e5";
//        city = "";
//        country = "";
//        fans = 0;
//        follows = 0;
//        gender = 2;
//        id = 175;
//        msgCfg =         {
//            all = 1;
//            comment = 1;
//            fan = 1;
//            like = 1;
//            pickpic = 1;
//        };
//        name = ww;
//        pickpic = 1911817;
//        relationship = 2;
//        signature = "";
//        state = "";
//    };
//}
